package com.bbw.act1.v3;

import com.bbw.act1.v3.fly.FlyNoWay;
import com.bbw.act1.v3.quack.Squeak;

/**
 * @Author cpw
 * @Date 2023/6/26 15:15
 */
public class RubberDuck extends Duck {

    protected RubberDuck() {
        this.flyable = new FlyNoWay();
        this.quackable = new Squeak();
    }

    @Override
    protected void display() {
        System.out.println("橡皮鸭子");
    }
}
